extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]陀螺仪"
	att.def = 30
	att.maxHp = 400
	info = "战斗开始时，提高200点机动，每秒-10，直到0为止\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	sys.main.connect("onBattleStart",self,"onBattleStart")

func onBattleStart():
	if not utils.inBattle(masCha):return
	masCha.addBuff(b_tuoluoyi.new())

class b_tuoluoyi:
	extends "../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		buffName = "陀螺仪"
		dispel = 2 
		id = "b_tuoluoyi"
		att.dod = 200
	func _upS():
		if att.dod > 0:
			att.dod -= 10

func upgrade():
	name = "[color=#FFFF00][史诗]陀螺仪"
	info = "战斗开始时，提高200点机动，每秒-10，直到0为止"
	att.def = 60
	att.maxHp = 800